<div class="weeks_select">
<script>
function add_report(){
	if($('#project').val()==0){
		alert('请选择项目');
		return false;
	}
	//alert($('#week').val())
	window.location.href='index.php?c=zy_week_report&m=add&project='+$('#project').val()+'&week='+$('#week').val();
}
</script>
<form name="form1" method="get" action="">
<input type="hidden" name="c" value="{%$smarty.get.c%}">
项目：
<select name="project" id="project">
<option label="请选择" value="0">请选择</option>
{%html_options options=$project_arr selected=$smarty.get.project%}
</select>
开始日期：<input type="text" name="textfield" value="{%$ss_week.0%}" size="12" readonly>
结束日期：<input type="text" name="textfield2" value="{%$ss_week.1%}" size="12" readonly> 
第
<select name="week" id="week">
{%foreach from=$this_week item=week_arr%}
<option value="{%$week_arr%}" {%if $week_arr==$smarty.get.week%}selected{%/if%}>{%$week_arr%}</option>
{%/foreach%}
</select> 
周
<button type="submit" class="b-default" hidefocus="true"><span><em>查询</em></span></button>
<button type="button" class="b-default" hidefocus="true" onclick="add_report()"><span><em>添加</em></span></button>
</form>
</div>
<div class="weeks_title">作业周报(Weekly Report)</div>

<div class="jqgrid_wrap">
	<div class="jqgrid_chunk">
		<div class="weeks_title_one">一、本周工作动态(Operating Developments)</div>
		<table id="list_od" class="scroll"></table>
		<div id="pager_od" class="scroll" style="text-align: center;"></div>
	</div>
	<div class="clear_week"></div>
	<div class="jqgrid_chunk">
		<div class="weeks_title_one">二、本周生产作业情况 (Jobs Completeded in This Week)</div>
		<div class="weeks_title_sec">作业记录（Jobs Records）</div>
		<table id="list_jcitw" class="scroll"></table>
		<div id="pager_jcitw" class="scroll" style="text-align:center;"></div>
	</div>
	<div class="clear_week"></div>
	
	<div class="jqgrid_chunk">
		<div class="weeks_title_sec">工作统计（Weekly Production Jobs）</div>
		<div>
			<span>工作累计(Total job):  <input type="text" name="wpj_job" value="{%$statistic.wpj_job%}" size="12" disabled /></span>
			<span>已经完成(Completed): <input type="text" name="wpj_completed" value="{%$statistic.wpj_completed%}" size="12" disabled /></span>
			<span>正在继续(Continue): <input type="text" name="wpj_continue" value="{%$statistic.wpj_continue%}" size="12" disabled /></span>
		</div>
	</div>
	<div class="clear_week"></div>
	
	<div class="jqgrid_chunk">
		<div class="weeks_title_sec">设备使用记录 (Main Equipment in Use)</div>
		<table id="list_meiu" class="scroll"></table>
		<div id="pager_meiu" class="scroll" style="text-align:center;"></div>
	</div>
	<div class="clear_week"></div>
	<div class="jqgrid_chunk">
		<div class="weeks_title_one">三、本周主要工作(Main Jobs In This Week)</div>
		<table id="list_mjitw" class="scroll"></table>
		<div id="pager_mjitw" class="scroll" style="text-align: center;"></div>
	</div>
	<div class="clear_week"></div>
	<div class="jqgrid_chunk">
		<div class="weeks_title_one">四、QHSE工作 (QHSE Jobs)</div>
		<div class="weeks_title_sec">事故记录(Weekly QHSE Accident & Inccident Statistics) </div>
		<table id="list_wqa" class="scroll"></table>
		<div id="pager_wqa" class="scroll" style="text-align:center;"></div>
	</div>
	<div class="clear_week"></div>
	<div class="jqgrid_chunk">
		<div class="weeks_title_sec">QSHE工作描述（Weekly QHSE Job Description）</div>
		<table id="list_wqjd" class="scroll"></table>
		<div id="pager_wqjd" class="scroll" style="text-align:center;"></div>
	</div>
	<div class="clear_week"></div>
	<div class="jqgrid_chunk">
		<div class="weeks_title_one">五、人员和培训(Personnel and Training)</div>
		<table id="list_pat" class="scroll"></table>
		<div id="pager_pat" class="scroll" style="text-align: center;"></div>
	</div>
	<div class="clear_week"></div>
	<div class="jqgrid_chunk">
		<div class="weeks_title_one">六、市场信息（Marketing）</div>
		<table id="list_market" class="scroll"></table>
		<div id="pager_market" class="scroll" style="text-align: center;"></div>
	</div>
	<div class="clear_week"></div>
	<div class="jqgrid_chunk">
		<div class="weeks_title_one">七、需协调的事宜(Things Need to Coordinate)</div>
		<table id="list_tntc" class="scroll"></table>
		<div id="pager_tntc" class="scroll" style="text-align: center;"></div>
	</div>
	<div class="clear_week"></div>
	<div class="jqgrid_chunk">
		<div class="weeks_title_one">八、下周主要工作(Main Jobs in Next Week)</div>
		<table id="list_mjinw" class="scroll"></table>
		<div id="pager_mjinw" class="scroll" style="text-align: center;"></div>
	</div>
	<div class="clear_week"></div>
	<div class="jqgrid_chunk">
		<div class="weeks_title_one">九、其它（Others)</div>
		<table id="list_other" class="scroll"></table>
		<div id="pager_other" class="scroll" style="text-align: center;"></div>
	</div>
	<div class="clear_week"></div>
</div>